#include <iostream>
#include <vector>
#include <trim_string.h>

using namespace std;

int main (int argc, char *argv[])
{
	std::vector<string> strings;
	strings.push_back("     adfgsadf  sfd dsfas");
	strings.push_back("adfgsadf  sfd dsfas");
	strings.push_back("     adfgsadf  sfd dsfas       ");
	strings.push_back("     adfgsadf    sfd dsfas     ");
	strings.push_back("     adfgsadf      sfd dsfas");
	strings.push_back("adfgsadf  sfd dsfas");
	strings.push_back("       s ");
	strings.push_back("              \n\n");
	strings.push_back("");

	for (unsigned i = 0; i < strings.size(); ++i)
	{
		string trimmed = trim(strings[i]);
		std::cerr << "[" << strings[i] << "] =>\n"
					 << "[" << trimmed << "]\n";
	}
	return(0);
}

